﻿using DataModels.Dto;
using DataModels.Entities.Feedback;
using Microsoft.AspNetCore.Mvc;
using Services.Feedback;
using Services.Visitor;

namespace PropertyManagementWebApi.Controllers.Feedback
{
    public class FeedBacksController(FeedbackService feedBacksService) : BaseController
    {
        protected readonly FeedbackService _feedBacksService = feedBacksService;
        /// <summary>
        /// 添加反馈
        /// </summary>
        /// <param name="feedback"></param>
        /// <returns></returns>
        [HttpPost]
        public ResponseModel AddFeedback(DataModels.Entities.Feedback.Feedback feedback) {
            return _feedBacksService.AddFeedback(feedback);
        }
    }
}
